#用户模块下的蓝图，包括用户模块下的所有资源
from flask import Blueprint
from flask_restful import Api
from common.kit_工具包.output import output_json


user_bp=Blueprint('users',__name__, url_prefix='/users')
user_api=Api(user_bp)
user_api.representation('application/json')(output_json)


#加载当前模块的资源
from shopping_items.resources.user_模块.uesr_resource import ur_resource,User_SMS,verify_SMS,PhoneExist,Register_resourse,Login_resourse,Text,Textpost
user_api.add_resource(ur_resource,'/hello',endpoint='hello')
user_api.add_resource(User_SMS,'/sms',endpoint='sms')
user_api.add_resource(verify_SMS,'/authorization',endpoint='authorization')
user_api.add_resource(Register_resourse,'/register',endpoint='register')
user_api.add_resource(Login_resourse,'/login',endpoint='login')
user_api.add_resource(PhoneExist,'/phoneexist',endpoint='phoneexist')
user_api.add_resource(Text,'/text',endpoint='text')
user_api.add_resource(Textpost,'/textpost',endpoint='textpost')




